﻿using DbModel.Models;
using IRepositories.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace IRepositories
{
    public interface IArticleRepository : IBaseRepository<Article>
    {
        //void Add(Article model);
        //void Update(Article model);
        //void Delete(Article model); 
        //List<Article>Query(Expression<Func<Article, bool>> whereExpression);

        Task<Article> GetByIdAsync(int id, CancellationToken cancellationToken = default);

        Task<Article> GetCollectionArticlesByIdAsync(int id, CancellationToken cancellationToken = default);

    }
}
